<template>
  <Demo v-if="showDemo">
  </Demo>
  <button @click="showDemo=!showDemo">toggleShowState</button>
</template>

<script>
// https://www.bilibili.com/video/BV1Zy4y1K7SH?p=149&spm_id_from=pageDriver&vd_source=cd7c05823c8e4a5b7a5754b7ad8fe5de
import { reactive ,ref} from "vue";
import Demo from './components/Demo.vue'
export default {
  name: "App",
  components:{Demo},
  setup(){
    let showDemo=ref(true)
    return {showDemo}
  },
};
</script>

<style scoped>
</style>
